package com.cium.aqie.begin

/**
 * @Function:
 * @Author: aqie
 * @Date: 2019/8/29 17:58
 */
// 变长参数
fun main(vararg args:String) {
    var ints = intArrayOf(1,3,5,7)
    // 变长参数 打印数组， *只支持array
    printArray(ints = *ints, string = "hello")
}

fun printArray(double:Double = 3.0,vararg ints:Int, string :String){
    ints.forEach(::println)
}